package cn.memset.user.autoconfigure;

import cn.memset.user.api.feign.UserFeignClient;
import cn.memset.user.api.feign.UserFeignMarket;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * ******************************************************
 *
 * @author liugh9
 * @version 1.0
 * @classname MsUserAutoConfiguration
 * @description 只会扫描自己项目中的package，倘若需要扫描其它的包，类似该操作即可@Import({UserFeignClient.UserFallbackFactory.class})
 * @date 2023/04/19 22:27
 * <p>
 * ******************************************************
 */
@Configuration(proxyBeanMethods = false)
@ConditionalOnClass(UserFeignMarket.class)
@EnableFeignClients(basePackageClasses = UserFeignMarket.class)
@EnableConfigurationProperties(MsUserConfiguration.class)
@Import({UserFeignClient.UserFallbackFactory.class})
public class MsUserAutoConfiguration {
}
